home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5291 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  732 b 

  1. Path: gail.ripco.com!mambuhl
  2. From: mambuhl@ripco.com (Martin Ambuhl)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help on random number
  5. Date: 9 Feb 1996 17:57:12 GMT
  6. Organization: Ripco Communications, Inc.
  7. Message-ID: <4fg1to$eob@gail.ripco.com>
  8. NNTP-Posting-Host: foley.ripco.com
  9.  
  10. Tan Shu Wei <tsw@shuwei.pl.my>
  11. in <4f7193$4bi@jaring.my> asks:
  12.  
  13. >.... Can
  14. >help me, or even give me a short explanation on how randomize()
  15. >works?
  16.  
  17. Although randomize() is not standard, Borland defines it in stdlib.h.
  18. No explanation is more complete than the macro definition. srand() is
  19. standard.
  20.  
  21. #define randomize()     srand((unsigned)time(NULL))
  22.                                  
  23. --
  24. * Martin Ambuhl       net: mambuhl@ripco.com
  25. * Chicago, IL (USA)    
  26.